package com.wind.taobao.api.trade.shop.rest
{
	import com.wind.taobao.api.trade.shop.convert.ShopCatConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.shopcats.list.get Response
	 * @author fxy
	 *
	 */
	public class ShopCatsListGetResponse extends TaobaoResponse
	{
		public var shopCats:ArrayCollection;

		public function ShopCatsListGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initShopCats();
		}

		private function initShopCats():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("shop_cats"))
					shopCats=ShopCatConvert.convertShopCats(body["rsp"]["shop_cats"]);
			}
		}
	}
}